package com.hx.pojo;

import org.springframework.stereotype.Component;

/**
 * @author: 若若叶
 * @date: 2021/9/16 18:22 FileName: Product Description:
 */
@Component
public class Product {
  private Integer id;
  private String name;
  private String address;

  public Product() {}

  public Product(Integer id, String name, String address) {
    this.id = id;
    this.name = name;
    this.address = address;
  }

  @Override
  public String toString() {
    return "Product{"
        + "id="
        + id
        + ", name='"
        + name
        + '\''
        + ", address='"
        + address
        + '\''
        + '}';
  }

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getAddress() {
    return address;
  }

  public void setAddress(String address) {
    this.address = address;
  }
}
